package org.jeecg.modules.quartz.job;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.aliyun.entity.service.IEntityTaskService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * 示例带参定时任务
 * 
 * @Author Scott
 */
@Slf4j
public class PhoneTaskJob implements Job {

	/**
	 * 若参数变量名修改 QuartzJobController中也需对应修改
	 */
	private String parameter;

	public void setParameter(String parameter) {
		this.parameter = parameter;
	}


	@Autowired
	IEntityTaskService entityTaskService;

	@Override
	public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
		log.info("定时任务-检查是否有云手机任务-状态等待执行");
//		如果有登陆盘任务先执行。然后检查母盘任务。然后检查子盘任务。
		entityTaskService.taskCheck( );




	}


}
